package com.consumer;

import com.common.model.User;
import com.common.service.UserService;
import com.rpc.proxy.ServiceProxyFactory;

public class EasyConsumerExample {
    public static void main(String[] args) {
        //获取UserSerivce对象
        UserService userService  = ServiceProxyFactory.getProxy(UserService.class);
        User user = new User();
        user.setName("jiajia");
        //调用
        User newUser = userService.getUser(user);
        System.out.println(newUser);
    }
}
